<?php

namespace App\Model;

use Illuminate\Database\Eloquent\Model;

class Users extends Model
{	

    //指定对应的数据库
    // protected $connection = 'room';


	public function login($username){
		// return 1111;die;
    	return  \DB::table('users')->where('name',$username)->first();
	}
}
